package cn.mingfancloud.bilibili_java.javabase.a_运算符;

public class aea_自增自减运算符_基本使用 {
    public static void main(String[] args) {
        int a = 10;
        a++;
        System.out.println(a);//11
        ++a;
        System.out.println(a);//12
        a--;
        System.out.println(a);//11
        --a;
        System.out.println(a);//10
        int x = 10;
        int y = x++;
        int z = ++x;
        System.out.println("x:" + x);
        System.out.println("y:" + y);
        System.out.println("z:" + z);
    }
}
